package cn.minds.capture.dispatch;

import com.alibaba.fastjson.JSON;

import cn.minds.capture.dispatch.task.Task;

public class JsonCommand {

	public Class<? extends Task> clazz;
	public String value;

	public JsonCommand() {
		super();
	}

	public JsonCommand(Class<? extends Task> clazz, Task entity) {
		super();
		this.clazz = clazz;
		this.value = JSON.toJSONString(entity);
	}

	public Class<? extends Task> getClazz() {
		return clazz;
	}

	public void setClazz(Class<? extends Task> clazz) {
		this.clazz = clazz;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
